package com.shop.order.service.impl;

import com.shop.Result.LdbzResult;
import com.shop.order.service.OrderService;
import com.shop.pojo.LdbzCart;
import com.shop.pojo.LdbzOrder;
import io.seata.spring.annotation.GlobalTransactional;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@GlobalTransactional
public class OrderServiceImpl implements OrderService {

    private static final Logger logger = LoggerFactory.getLogger(OrderServiceImpl.class);

    @Autowired
    private RedisTemplate redisTemplate;
    @Override
    public LdbzResult countOrder(LdbzOrder entity) {
        return null;
    }

    @Override
    public LdbzResult getOrderPage(LdbzOrder entity, int pn, int limit) {
        return null;
    }

    @Override
    public LdbzResult selectByKey(Long id) {
        return null;
    }

    @Override
    public LdbzResult deleteByKey(String id) {
        return null;
    }

    @Override
    public LdbzResult updateStatusByKey(LdbzOrder entity) {
        return null;
    }

    @Override
    public boolean generateOrder(String userCookieValue, List<LdbzCart> cookieItems, String orderItemCodes, String orderNums, String address, float shippingPrice) {
        return false;
    }
}
